package HCI.src;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class ViewResults extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.viewresults);
       ImageButton result1 = (ImageButton)findViewById(R.id.SearchResult1ImageButton);
       ImageButton result2 = (ImageButton)findViewById(R.id.SearchResult2ImageButton);
       ImageButton result3 = (ImageButton)findViewById(R.id.SearchResult3ImageButton);
        OnClickListener cListener=new View.OnClickListener(){ 
	    	public void onClick(View view) {
				Intent switchToDEC = new Intent(view.getContext(), Description.class);
				
				startActivity(switchToDEC);
	    	}
	    };
        result1.setOnClickListener(cListener);
        result2.setOnClickListener(cListener);
        result3.setOnClickListener(cListener);
    }
}